package day6;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ScannTest {
    public static void main(String[] args) {
//        Scanner in=new Scanner("123 abc");
//        int i=in.nextInt();
//        String s=in.next();
//        System.out.println(i);
//        System.out.println(s);
        Scanner in=new Scanner(System.in);
        System.out.println("input a number:");
        int k=in.nextInt();
        System.out.println("输入字符串：");
        in.nextLine();//读取那个回车，不要了
        String s = in.nextLine();//不给机会输入了？
        System.out.println(k+">>>>>>>>>>>>"+s+":长度是"+s.length());
    }
}
